import request from '@/utils/request'

export function getList(params) {
  return request({
    url: '/admin/visual/video',
    method: 'get',
    params
  })
}

export function delList(file_id) {
  return request({
    url: '/admin/visual/video/'+file_id,
    method: 'DELETE',
  })
}
export function addForm(data) {
  return request({
    url: '/admin/visual/video',
    method: 'post',
    data
  })
}
export function addFormEditor(data,file_id) {
  return request({
    url: '/admin/visual/video/'+file_id,
    method: 'put',
    data
  })
}
export function editorForm(params) {
  return request({
    url: '/admin/visual/video',
    method: 'get',
    params
  })
}
